ThemedSpinnerAdapter

An extension of SpinnerAdapter that is capable of inflating drop-down views against a different theme than normal views.

Classes that implement this interface should use the theme provided to setDropDownViewTheme when creating views in getDropDownView.

The Helper class is provided to aide implementation in a backwards compatible way.

Types

Link copied to clipboard
class Helper
A helper class which allows easy integration of ThemedSpinnerAdapter into existing SpinnerAdapters in a backwards compatible way.

Functions

Link copied to clipboard
abstract fun getDropDownViewTheme(): @Nullable Resources.Theme
Returns the value previously set by a call to setDropDownViewTheme.
Link copied to clipboard
abstract fun setDropDownViewTheme(theme: @Nullable Resources.Theme)
Sets the Resources.Theme against which drop-down views are inflated.